package com.xu.cloud.common.jpa;

import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
import org.springframework.data.repository.core.RepositoryMetadata;

import javax.persistence.EntityManager;

/**
 * JpaRepositoryFactoryV2
 *
 * @author xuguan
 * @since 2025/6/10
 */
public class JpaRepositoryFactoryV2 extends JpaRepositoryFactory {
    public JpaRepositoryFactoryV2(EntityManager entityManager) {
        super(entityManager);
    }

    @Override
    protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata) {
        return SimpleJpaRepositoryV2.class;
    }
}
